package com.bosssoft.cloud.wechat.core.infra.properties;

import com.bosssoft.cloud.wechat.infrastructure.factory.YamlAndPropertySourceFactory;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 区划配置
 * <p>
 * 若无特殊情况，请仅在WxConfig中使用
 *
 * @author wcy create on 2021/5/17 14:57 下午
 */

@Data
@Component
// 如果报红线警告不用管
@ConfigurationProperties
@PropertySource(value = "classpath:area.yaml", factory = YamlAndPropertySourceFactory.class)
public class AreaProperties {

    /**
     * 区域
     */
    private Map<String, String> area;
}
